import request from '@/utils/request'

// 查询密接人员记录列表
export function listNearman(query) {
  return request({
    url: '/whc/nearman/list',
    method: 'get',
    params: query
  })
}

// 查询密接人员记录详细
export function getNearman(nmid) {
  return request({
    url: '/whc/nearman/' + nmid,
    method: 'get'
  })
}

// 新增密接人员记录
export function addNearman(data) {
  return request({
    url: '/whc/nearman',
    method: 'post',
    data: data
  })
}

// 修改密接人员记录
export function updateNearman(data) {
  return request({
    url: '/whc/nearman',
    method: 'put',
    data: data
  })
}

// 删除密接人员记录
export function delNearman(nmid) {
  return request({
    url: '/whc/nearman/' + nmid,
    method: 'delete'
  })
}
